package com.itheima.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;


public enum UserStatus {
    NORMAL(1, "正常"),
    FREEZE(2, "冻结");

    @EnumValue //表示数据库中存储的值
    private final int code;
    @JsonValue //在显示时使用的值
    private final String message;

    UserStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
